package com.memory.monitor.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.memory.monitor.common.DeleteRequest;
import com.memory.monitor.model.dto.job.JobAddRequest;
import com.memory.monitor.model.dto.job.JobQuerryRequest;
import com.memory.monitor.model.dto.job.JobUpdateRequest;
import com.memory.monitor.model.dto.market.MarketAddRequest;
import com.memory.monitor.model.dto.market.MarketQuerryRequest;
import com.memory.monitor.model.dto.market.MarketUpdateRequest;
import com.memory.monitor.model.entity.Job;
import com.memory.monitor.model.entity.Market;
import com.memory.monitor.model.vo.JobVO;
import com.memory.monitor.model.vo.MarketVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
* @author 21731
* @description 针对表【market(营销情况)】的数据库操作Service
* @createDate 2024-09-02 09:59:55
*/
public interface MarketService extends IService<Market> {
    /**
     * 获取MarketVO信息
     *
     * @param market
     * @return
     */
    MarketVO getMarketVO(Market market);

    /**
     * 获取MarketVO信息
     *
     * @param marketList
     * @return
     */
    List<MarketVO> getMarketVO(List<Market> marketList);

    /**
     * 查询条件
     *
     * @param marketQuerryRequest
     * @return
     */
    QueryWrapper<Market> getQueryWrapper(MarketQuerryRequest marketQuerryRequest);


    /**
     * 增加查询条件
     *
     * @param marketAddRequest
     * @return
     */
    Long addMarket(MarketAddRequest marketAddRequest);

    /**
     * 更新查询条件
     *
     * @param marketUpdateRequest
     * @return
     */

    Boolean updateMarket(MarketUpdateRequest marketUpdateRequest);

    /**
     * 删除查询条件
     *
     * @param deleteRequest
     * @return
     */

    Boolean deleteMarket(DeleteRequest deleteRequest);

    List<MarketVO> listMarketByPage();

    Boolean readExcel(MultipartFile multipartFile);

    Boolean writeExcel(String path);

}
